.. amebaDocs documentation master file, created by sphinx-quickstart on Fri Dec 18 01:57:15 2020. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. ############################################# [RTL8722CSM] [RTL8722DM] SPI - Slave Receive ############################################# .. role:: raw-html(raw) :format: html :raw-html:`
` **Materials** :raw-html:`
` * AmebaD[AMB21 / AMB22] x 1 * Arduino UNO x 1 :raw-html:`` **Steps** :raw-html:`
` SPI is a fast and robust communication protocol that are commonly found on many microcontrollers and is often used to retrieve sensor data or output image signal to a display. Ameba support SPI in both master and slave mode. Here we are going to see an example demonstrating how ameba receive data in slave mode on MicroPython. Before connection, make sure to upload the following code to your Arduino UNO. .. code-block:: c :linenos: /////////////////////// // SPI Master Write // /////////////////////// #include